-- GENERATED SPELL FOR [Unliving Caretaker] --


function spell0_12379(pUnit, Event) --@Debilitating Strike,n/a--
pUnit:FullCastSpellOnTarget(38621,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12379', 561, 1)
end

function spell1_12379(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_12379', 646, 1)
end

function Sorts_12379(pUnit, Event)
local choix_sorts_12379 = math.random(0, 1)
if choix_sorts_12379 == 0 then
pUnit:RegisterEvent('spell0_12379', 1, 1)
end
if choix_sorts_12379 == 1 then
pUnit:RegisterEvent('spell1_12379', 1, 1)
end
end

function mob12379_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12379', math.random(1500, 3000), 1)
end

function mob12379_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12379_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12379_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12379, 1, 'mob12379_Action')
RegisterUnitEvent(12379, 2, 'mob12379_Leave')
RegisterUnitEvent(12379, 3, 'mob12379_Kill')
RegisterUnitEvent(12379, 4, 'mob12379_Die')
